import request from '@/utils/request'

export function getHightContractorList(data) {
  return request({
    url: 'hight/contractor/list',
    method: 'post',
    data
  })
}

export function getHightContractor(id) {
  return request({
    url: 'hight/contractor/get',
    method: 'post',
    params: { id }
  })
}

export function addHightContractor(data) {
  return request({
    url: 'hight/contractor/add',
    method: 'post',
    data
  })
}

export function editHightContractor(data) {
  return request({
    url: 'hight/contractor/edit',
    method: 'post',
    data
  })
}

export function editHightContractorStatus(id, status) {
  return request({
    url: 'hight/contractor/edit_status',
    method: 'post',
    params: { id, status }
  })
}
